Convert array into music
Ältere Kommentare anzeigen
Hello. I have an array of music notes that I can access from ms excel using writetable/writematrix/etc.
I was wondering if it is possible to produce a sound from this as in like playing music. (I saw a question related to this but couldn't quite understand it as the code is long).
To be precise, I actually have a soundfont .sf2 file which is my sample of a custom instrument sound, say instrument X, and I want that sound to come out using this instrument (so not using any default song that MATLAB possibly uses). I have no idea if that is of any use, but my overall intention was to do something like this: 1. Extract that array of notes to MATLAB (the notes are already adjusted so that the soundfont can cover the whole range), 2. Play it with the sound of the custom instrument (where the columns simply represent the beats).
I am not sure if this is possible, but I saw one file on the file exchange page that manipulates soundfont, and so I am wondering about this whole thing.
Thank you so much for suggestions!
1 Kommentar
Star Strider
am 15 Feb. 2022
It may be necessary to use the Audio Toolbox for this. (I don’t have it, so I have no experience with it.)
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Audio and Video Data finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!