Nodes ids in an Audulus patch


#1

Hi,
I took a look at one of my .audulus patches in a text editor and it was pretty understandable, so I may start to programmatically generate some of my patches in the future. The only thing I’m not totally sure about is the rule for indexing nodes. I tried changing a character in every instances of some node’s index and the patch still worked, so I was wondering what were the constraints on the index format?

Does it just have to be. xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx? Or is there some other rule?


#2

This is an interesting question - if @taylor has some time to answer, maybe he can?

Otherwise, I know @jjthrash has built stuff using scripts, and even has a tool that might help you.


#3

Hi @Mederic, the ID’s are UUIDs: https://en.wikipedia.org/wiki/Universally_unique_identifier

cheers


#4

I have some sample code in this project: https://github.com/jjthrash/audulus_wave_table

The simple version of how I build a new node is:

  • copy an existing node
  • find all the UUIDs
  • replace them with new UUIDs

Most of the above project is actual specific project related code, but the general library I’ve started building is in this file: https://github.com/jjthrash/audulus_wave_table/blob/master/lib/audulus.rb

Hope that helps.


#5

Ok thank you all for your answers!

@jjthrash : I think I am gonna try to do it from scratch (as an exercise :slight_smile:) but I will definitely use your code as a reference when I am stuck, or to check if I am doing things right.