wildyeast / sadiss

A socially aggregated distributed sound system.
GNU Affero General Public License v3.0
10 stars 2 forks source link

Midi file playback #67

Open KlienVo opened 1 year ago

KlienVo commented 1 year ago

example_1track_frame.maxpat.zip

Would be great could the Midi File transcoding happen on the server instead of doing it via Max & Spear. What basically happens at the moment is:

  1. create midi files (type 1) with monophonic content on each track
  2. transcode the midi-file into our partial format (at the moment still using Midi2sdif_06.maxpat to be found at: https://cloud.bruckneruni.at/index.php/s/XyymFYHZZjEXP65 )

Ideally this would happen directly on server:

Attached you find the Max patch I wrote to create a stream of partial triplets from a monophonic midi track. I use an ADSR envolope to change the amplitude of each Midi-Note over time. In the current patch I scale the attack, decay and release time in relation to the duration of the note event, which is actually not such a great idea. It would be better to keep attack and release times fixed.