Comments (4)
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.
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.
Related Issues (20)
- 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
- What does Clean LED Strip do? HOT 1
- from werkzeug.utils import safe_join HOT 1
- Support for 160 leds/m strip HOT 8
- How does the "LED offset settings" work ?? HOT 1
- Gradient mode in sequences crashes LED Visualizer HOT 7
- LCD Display remains white HOT 5
- CPU Usage hovering 100% and input lag between key press and LED strip HOT 6
- There are no hotspot HOT 1
- 144 leds/m strips HOT 5
- Request for sightreading practice HOT 4
- 1.3 SPI LCD small and portrait HOT 2
- Help with IPADTablet Setup HOT 2
- Feature Request - Brightness/colour/quantity customization on future notes
- led strip
- Visualizer UI gets stuck upon booting HOT 1
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.