How can I export a song in MIDI file format?

Upto SoundHelix 0.4 it was not possible to export the generated songs in MIDI file format. A first version of this capability has been added to SoundHelix 0.5 as part of the MidiPlayer. The MidiPlayer documentation contains a description about how to enable the MIDI file export.

Comments

The answer is...

I apologise for the above failure to answer this question (and the untruthfulness of the last sentence). In the 'examples' folder, create a copy of the file 'SoundHelix-Piano.xml' and call it 'bak.xml' for safe keeping. Open the original file WITH TextEdit (on a Mac say). Scroll to the bottom of this file to the line '' which needs to be uncommented (somehow???). Change this line by deleting the start and finish of the line, to this: 'midifiles/${safeSongName}-${safeDeviceName}.mid '. Now when you launch the program (somehow - that's your bit and double click won't do), it should create the folder 'midifiles' inside the program folder and save all the '.mid' files to that location.

Hm, not sure that was a serious question/post

Hm, not sure that was a serious question/post. What exactly is confusing regarding uncommenting a line in an XML file and then starting SoundHelix with the modified file?

Take the XML file, let's say examples/SoundHelix-Percussion.xml (make a copy or don't). In the file, change the line

<!-- <midiFilename>midifiles/SoundHelix-Percussion_-_${safeSongName}.mid</midiFilename> -->

to

<midiFilename>midifiles/SoundHelix-Percussion_-_${safeSongName}.mid</midiFilename>

and run SoundHelix with that XML file (using "./run.sh examples/SoundHelix-Percussion.xml" in SoundHelix' main directory). Done. SoundHelix will create the "midifiles" subfolder in the main directory (if it doesn't exist) and will generate a MIDI file there for every song generated.

I removed the "midifiles" folder and generated one song. Then the midifiles folder existed and looked like this:

$ ls -l midifiles
total 96K
-rwx------+ 1 TranceTip None 96K 23. Jul 23:45 SoundHelix-Percussion_-_The_slithering_cow.mid*

Add new comment

Error | SoundHelix

Error

Error message

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'o3587400'@'swh-live-web53.swh.1u1.it' for table 'drupal_accesslog': INSERT INTO {accesslog} (title, path, url, hostname, uid, sid, timer, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7); Array ( [:db_insert_placeholder_0] => How can I export a song in MIDI file format? [:db_insert_placeholder_1] => node/78 [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => 44.201.94.1 [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => pnIjMkpScV4vfFhS2eSu-5qgEwebkuXopvvR07Axb1Y [:db_insert_placeholder_6] => 1247 [:db_insert_placeholder_7] => 1711714972 ) in statistics_exit() (line 91 of /mnt/web305/e3/68/52429368/htdocs/soundhelix.com/public_html/modules/statistics/statistics.module).
The website encountered an unexpected error. Please try again later.