-
laszlo.j.hermann
Hi ,
to control my process I need two hardware buttons.
I thought to use the buttons of a bluetooth mouse.
Is there any experience on this field about any prefered LE Bluetooth device ?From the "cb" Documentation:
- The cb (“Core Bluetooth”) module enables you –to connect to Bluetooth LE (“Low Energy”) peripherals like the TI SensorTag (a small and affordable BTLE device that contains various sensors like an IR thermometer, accelerometer, etc.).
- The examples in this documentation assume that you either have a standard Bluetooth LE heartrate monitor, or a TI SensorTag, but the module also works with other types of Bluetooth LE peripherals. Note that “classic” Bluetooth (used for headsets, keyboards, etc.) is NOT supported.
Many thanks,
László -
laszlo.j.hermann
Many thanks. I try to connect to my Mac BT Midi. I would like to use my iPad as a periphery to play and record using Mac ( Pianoteq) sound.
I configured the Midi-Setup/Midi Studio / Bluetooth , started advertising and your Code works fine to the point, where connecting the Mac bt-midi and both side gets the confirm dialog, but the connection is not established.Any idea?
If it would connect, can I see the Mac BT Midi in the Pythonista device list delivered by cb.scan_for_peripherals()? -
laszlo.j.hermann
Did you found a workaround to communicate with BT midi devices?
-
laszlo.j.hermann
I figured out. Now I can read, write, realtime (play, record) and edit MIDI files :-)
-
laszlo.j.hermann
I want to start the play function of the "mido" Python Module on a loaded Midi file from a scene and visualize and play the messages by filling a list of the Midi nodes. Parallel I want be able to play my nodes by touching the screen like in the piano.py. If I start a loop directly from a scene the "touch_began" doesn't catch the messages until the loop ended. Probably I need to start / stop a parallel Thread to play the MidiFile and be able record my nodes in the same time.
-
-
laszlo.j.hermann
Is there any way to start a parallel thread from the scene?
-
laszlo.j.hermann
Many thanks for the answers. I would need a module to Read and Write/ Manipulate. Midiutil is only for writing/creating MIDI files.
https://github.com/vishnubob/python-midi/ has the necessary functionality but it has a hardware binding and I'm not so deep in Python to easily port it to Pythonista.
Any suggestion? -
laszlo.j.hermann
Hallo, is there any posibily to reand and write MIDI files in Pythonista 3.
In Pythonista 2 there was the midiutil.MIDIFILE to crate MIDI Files. In 3 is no midiutil module. -
laszlo.j.hermann
As I remember, the first version I had, was not "noisy" by stop_effect. The missing of fade out was not so disturbing the now. The stop_effect has a stronger characteristic of "switch off" noise. Maybe it is only my subjectiv impression.. I created a "88 key" piano app with 4 sec long sound patterns and I feel the low frequency sounds has a strong disturbing switch off noise by short touches. Do you have an other impression?