RipX Forum

Notifications
Clear all

Exporting all instruments in a Rip

2 Posts
2 Users
0 Likes
16 K Views
(@jh9919)
New Member
Joined: 5 years ago
Posts: 1
Topic starter  

I can't seem to find the list of commands you can use. Is this available anywhere? I want to make a RipScript which exports all of the instruments in a Rip file to a specified format. It must be possible... hmm


   
Quote
(@admin)
Active Member Admin
Joined: 5 years ago
Posts: 9
 

The full list is available by clicking on objects from 'Help>RipScript Reference'.

Alternatively, here is the direct link:

https://docs.google.com/spreadsheets/d/1S9P63uzE6VnXOodjjhaGzODbxbAZA96oh9XI0RGnJes

To export an instrument, you could do something like this. Currently its not possible to loop through all instruments in a rip, however you could loop the following code setting a different instrument name each time:

    instrument_name = "Piano"
    # Create a temporary RipCut to store the piano notes
    ripcut = rip.new_ripcut(instrument_name)
    # Create a NoteGroup by filtering all notes in the rip that match the instrument_name and then copy it to the temporary RipCut
    rip.notes.filter(add=instrument(instrument_name)).copy_to(ripcut)
    # Export the RipCut as a 16-bit wav
    ripcut.export(file="Piano.wav", type=WAV16)
    # If no longer need the RipCut, can delete it
    #ripcut.delete()


   
ReplyQuote
Share: