Solved Building a table based midi file player
-
So im working on trying to build out a structured midi player for my current project playing off of a snippet I found here in the forum that was working really good...but I also saw that you can use a viewport in "table mode" to structure out the files as such:
playing around with things I was able to get things sorted working but I cant seem to get the midi file to actually load when I click on the file in the viewport. I have verified that the files are in my midifiles folder in my project folder and even the console print says:
"Interface: Attempting to load MIDI file from path: {PROJECT_FOLDER}/MidiFiles/PianoBb.mid
Interface: Successfully loaded MIDI file: {PROJECT_FOLDER}/MidiFiles/PianoBb.mid"but the file isn't loading into the midi player. Here's a snippet...still learning a lot of things...but where am I going wrong with this?
HiseSnippet 2291.3oc4YstaabbEdWIsIUzwoNAAE8mCHJBnQInHont4TWScitpQxhPjwo.AFFC2cH4TsbGlYGJYACADzmL+Hzmi9K+FzdNydaVokxLxM4GsDBDbNyLey49Lmi5JEtrvPgzxd09WMkYY+YN8tJPMd+wTdf0QGXY+HmIbO9Te5ULohEpr16pozvPlmks8xOGWk8pqXo+79msG0mF3xxHYY8RA2kcLeBWkQsa6uk662g5w5ymXr5VsOxUDruvWLC3nkcpaMk5dNcD6ETbYK4XY+IG5wUBYOEEXFK6U1S3cUuwhKChV+K4g7A9LbPCqd.PQj6H78PNFoZs+XtuW2DIOzxx1oaldX4H8vW4bBH1ozM0G3DjrcXpOrWJO6sbN1qgI6U2f8JfkVxfk9zDSilkzVBMq.DN5fihIXxF6OSJYApdrebF6Fli3o5KAEqok6XgX5gATf47LIifO.VZuor7SXu7BKoMtSI0BEpNbeF9aCgdkHg9Kb54J4SUYyfR9CbNJPwjCofvYJ3Qq0Zo+0m4ru.VQfp1D54rNRXP5Nprc85UIaUu9i+lRkVaMxYrgLIpmHJAISiVBbECUjKnRChjmRzwG0FwTYViJkyVQ4hPUMlQtfytbpPpLv84Rg3B1dRwkgZnS3Y.78ESlJBfAUJmaUIvGYqH80eOQ3wJkaY0BYJ8bm.SU4skHvmxmIt7uv3iFqJ+Dx5sJccLT8XJMC5J7mMIf.RgXlZNvsudMgU9gRwXdzA.Xk6vkgJ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eCehmrAN1NdxFIS9qxYLgBOr70tQOyG8k+MZJfbGn+2AtpyI3XRiaWTA12lW65lGpaswl22Mt98cistuabi66F279twstuab6O7FwKs1clRLIJj0x5jtGF8Ta6z+Gj1Ka8e.bK9X1M
-
@johnmike you have this
// Array of MIDI file paths const var midiFilePaths = [ "{PROJECT_FOLDER}/MidiFiles/AlmostSingingGlidePad.mid", "{PROJECT_FOLDER}/MidiFiles/PianoBb.mid" ];
Have you tried to set path without the "MidiFiles"
like this:// Array of MIDI file paths const var midiFilePaths = [ "{PROJECT_FOLDER}/AlmostSingingGlidePad.mid", "{PROJECT_FOLDER}/PianoBb.mid" ];
I think the "setFile" to a MidiPlayer automatically look in the right folder ("MidiFiles")
-
@ulrik
still the exact same results...says it''s successfully loaded but still isn't loading -
Ive definitely got something screwy because even with the MidiFiles Folder completely empty the console still prints "Successfully loaded MIDI file:"
-
@johnmike Aha, if you take away the slash, try this
// Array of MIDI file paths const var midiFilePaths = [ "{PROJECT_FOLDER}AlmostSingingGlidePad.mid", "{PROJECT_FOLDER}PianoBb.mid" ];
-
This post is deleted! -
@ulrik SUCCESS!!!!!!! That did it! Now onto the next thing! gosh it's always the little goofball things that get us...
-
Here's the working snippet for anyone that wants to copy/improve this!
HiseSnippet 3012.3oc4Zr1aiabjx1LomRtzKAAE8acgPQfNXCFIY87Rud58CKIKYIYYKGjFPQt7gEEIM4pW9fAB5ur7Sn+Tt+AsyRRIQYK6SwoIenU3fr1Ymc148N6rWaKCArssgESfWzagIlIvmy1cgNQofBupNSshLA9R1wphplZ7KvVD9gZXl7KL4sswhLABreEJZAdwALNe9v6xyqwqKfWChgougp.tg5XUxZnsyVWUSqLuHtm5XeXGOaMAC8BFZFS.VZe1HLl7Bi3kwmxSQaOVl.eRIQUhgUWBOAayD3f7FhK5pXLS2E+9p1pTlDFDkoKPHWvkMzDobLEJSAEUMw1KEcaFl.rsWqH12UQ70rMA4dE70JjW4LAZ8J7qOBr2lr29avdQ8ydQ7wdagk1yGK8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