[PD] MIDIFILE read Tempo
Hello, ist there any way to read the tempo information contained in a midi file? Or do I really have to set up a metro for mrpeach/midifile everytime ? Thanks for any advice, Maciej ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] MIDIFILE read Tempo
That works great ! Even tempo changes within the file are updated. Thank you very much. Maciej Am 05.09.2013 um 18:36 schrieb Martin Peach: On 2013-09-05 09:29, Martin Peach wrote: On 2013-09-05 07:04, Maciej Sledziecki wrote: Hello, ist there any way to read the tempo information contained in a midi file? Or do I really have to set up a metro for mrpeach/midifile everytime ? It's been a while since I worked on that but I think you can dump the info and use that to set up a metro. I could probably add a message to get it to play automatically. If you bang the [midifile] after opening the file, the right outlet will emit ticks_per_quarternote and microsec_per_quarternote messages. So the millisecond rate for the [metro] would be = (microsec_per_quarternote/ticks_per_quarternote)/1000 See attached patch. Martin midifile_tempo.pd ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] PDuino/Firmata - arduino object - PWM servo problem
Solved the problem - has nothing to do with the PD object but only with the behaviour of the Arduino servo library: On boards other than the Mega, use of the library disables analogWrite() (PWM) functionality on pins 9 and 10, whether or not there is a Servo on those pins. http://arduino.cc/en/Reference/Servo Best, Maciej Am 30.04.2013 um 21:09 schrieb Maciej Sledziecki: Hello, I´m running StandardFirmata 2.3. on Arduino Uno with PD extended 0.43.4 on MacBookPro / MacOSX 10.6.8. What I´m trying to do, is to drive two pins (9 10) in pwm mode and at least two others (5 6) in servo mode. The pwm works fine - but only until I set one of the other pins to servo - then the diode that should be dimmed by pwm is either ON when receiving analog 1 or OFF when receiving any other value. The only way to get back to pwm again, is to close the arduino comport an reopen it again. Is there a way to avoid this and to drive different pins in different modes at the same time? Thanks and best, Maciej ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] PDuino/Firmata - arduino object - PWM servo problem
Hello, I´m running StandardFirmata 2.3. on Arduino Uno with PD extended 0.43.4 on MacBookPro / MacOSX 10.6.8. What I´m trying to do, is to drive two pins (9 10) in pwm mode and at least two others (5 6) in servo mode. The pwm works fine - but only until I set one of the other pins to servo - then the diode that should be dimmed by pwm is either ON when receiving analog 1 or OFF when receiving any other value. The only way to get back to pwm again, is to close the arduino comport an reopen it again. Is there a way to avoid this and to drive different pins in different modes at the same time? Thanks and best, Maciej ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] receiving data bytewise via UDP
Hello, I´m new to network with PD and could not find a solution on the net so far, so maybe someone can help me out on this. I will receive data from an installation via UDP, and will need to analyse the header before processing the data. The information will be in the following order: Header 1Byte 4Bytes 4Bytes 4Bytes 4Bytes, then Data in 1Byte format. so I need to read it bytewise. Is there any extension that can do that within PD on a Mac? Thanks and Best, Maciej ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list