use own audiostyle from usb pen drive - how to

Started by bernamato, October 18, 2018, 11:20:45 AM

Previous topic - Next topic

bernamato

For beneficial of all, I found a procedure to read own audiostyle from usb driver pen.
Hi all,
considered as follow:
1) Audio Phraser: MIDI parts. When exported, this data will be stored as blank data by this software.
2) From http://sandsoftwaresound.net/audio-style-file-format/, an audio style file has the following chunks (in order):

    Type    Purpose
    ----    ------------------------------------
    MThd    SMF header chunk
    MTrk    SMF track chunk
    CASM    Yamaha CASM chunk
    AASM    Audio assembly (descriptor) chunk
    AFil    Audio file (waveform) chunk
    OTSc    Yamaha OTS chunk
The AASM and AFil chunks are new, additional chunks beyond the known MIDI, CASM and OTS chunks.

We can use hex editor. Use Audio Phraser to load the wav for each part (main a, main b, intro a etc.). Save as .aus file.
a) change the audiostyle from .aus in .sty
b) load the style and use style creator with assembly function to reassign the midi data as your taste
c) save it on usb. The file will be .aus. This file is only a style file.
d) in hex editor  (I use Hex Fien for macosx) open the two files and copy from audiostyle saved in point a), the AASM chunks and past it in the style file you saved in the pont c), starting from the last row of style file.
e) copy  from .aus file, the header from SFF2 until Sint and past in .sty
f) save the modified file as .sty

Now you can use this file as a style with wav part embedded without need to save it in the user memory.

Every comment is welcome.

Best regards.

bernamato