Comments (4)
Hey, sorry for the late response.
Check if the start_recording() method is being called by adding a print statement there, and then check the console to see if it's being displayed when you start recording.
If you're trying to declare self.messages_to_save under __init__
, you have to declare it as a dictionary first:
self.messages_to_save = dict()
self.messages_to_save["main"] = []
Just to be sure, are you using the latest version of the code?
from piano-led-visualizer.
Hey @onlaj,
Since the new update doesn't solve my problem about recording the Midi files, I manually debugged the code again. The problem is neither rooted in the __init__
nor in the start_recording()
-function, but in the save()
-function of your savemidi.py
file.
In the start_recording()
, you initialise the self.messages_to_save
like this:
self.messages_to_save = dict()
self.messages_to_save["main"] = []
But in the save()
-function (line 71) you reinitialise it like:
self.messages_to_save = []
which means, that messages_to_save
is no longer a dict, but an array. However, at this point you need to reinitialise it like:
self.messages_to_save["main"] = []
I manually updated my code and now everything works perfectly.
from piano-led-visualizer.
I used self.messages_to_save = []
to only clear the content inside. I guess better way would be to just use clear()
. It shouldn't matter tho because in the start_recording()
it is reinitialised back to dictionary with self.messages_to_save = dict()
.
I have no clue why it's not working for you.
from piano-led-visualizer.
I see. Well, I don't know what's going on either. But now it works, so feel free to close the issue.
Great work by the way. I really love your project.
from piano-led-visualizer.
Related Issues (20)
- MY DGX670 can playback midi but input midi HOT 14
- (Question) Does Sevilla's Soft MIDI USB-USB work with an Android Tablet? HOT 1
- Lights not working with Sevilla MIDI USB-USB
- "Can't play this file" when trying to play Midi files. HOT 12
- Pi Freezes and I have to SSH to reboot HOT 1
- can't connect to wifi HOT 11
- 7 inch LCD touchscreen (more a question than an issue)
- piano_light_visualizer
- Trying a fresh manual install (without RTP and autoconnect and web interface) HOT 3
- Getting Error in lib/functions.py HOT 3
- My own syntesia HOT 2
- Led lights are not lighting up when keys are pressed HOT 12
- Midi interface not recognized
- Web Interface access HOT 1
- 3D Case model for the pi zero HOT 8
- Problems editing sequences HOT 1
- No module named "websockets" HOT 2
- Display remains white HOT 4
- Not an Issue but could expand possibilities of PLV
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from piano-led-visualizer.