Triggering Code

For general discussions related to SynthMaker.

Moderators: electrogear, exonerate

Triggering Code

Postby rocko on Fri Jun 29, 2012 5:50 am

Hi,

I'd like to open this thread as a continuation of another thread, discussing how to trigger a code calculation.
The idea is to use all the goodies of code (done at sampling rate, calculations are synched) while keeping the CPU low.
This is done by running the calculation only when needed, i.e.when one of the control inputs has changed.

This can be done by 'assenbley' only.

Here is a bare (not triggered sample) based on the RBJ coefficeint calculator, for the general case.

If any assembley wizard can help here by completing the trick itself - please do !

Thanks,
Rocko

Old post:
viewtopic.php?f=1&t=11519&p=87102#p87102
You do not have the required permissions to view the files attached to this post.
Last edited by rocko on Fri Jun 29, 2012 10:29 am, edited 1 time in total.
rocko
essemist
 
Posts: 59
Joined: Mon Dec 07, 2009 5:25 pm

Re: Triggering Code

Postby Warmonger on Fri Jun 29, 2012 9:26 am

[Empty schematic] ;)
Addictive synthesis.
User avatar
Warmonger
essemist
 
Posts: 173
Joined: Wed Jul 20, 2011 5:40 am
Location: Warsaw, Poland

Re: Triggering Code

Postby rocko on Fri Jun 29, 2012 10:30 am

I've reuploded.
rocko
essemist
 
Posts: 59
Joined: Mon Dec 07, 2009 5:25 pm

Re: Triggering Code

Postby trogluddite on Fri Jun 29, 2012 11:44 am

There are some commented examples of various assembly bypassing methods inside my Trogz Toolz toolkit.
Look inside the module Stream,Code and ASM -> Assembly Toolkits -> Assembly Bypassing.
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3027
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK

Re: Triggering Code

Postby rocko on Fri Jun 29, 2012 6:18 pm

What an amazing tool kit, so much to learn ;-)

I've tried to play with the "assembley trigger" one but failed.
I'm just transferring the input into output, hoping it would happen only when a changing output is connected to "value input'.
Unfortunately it happens all the time (music plays even if nothing is connected to 'value input'):

Image
rocko
essemist
 
Posts: 59
Joined: Mon Dec 07, 2009 5:25 pm

Re: Triggering Code

Postby josephcloud on Sat Jun 30, 2012 5:55 am

insert a Contact in your test class, then update one. It should hit both the after insert and before update
josephcloud
essemer
 
Posts: 1
Joined: Sat Jun 30, 2012 5:51 am

Re: Triggering Code

Postby rocko on Sat Jun 30, 2012 6:56 am

Hi,

Could you please give an example in the attached module?
You do not have the required permissions to view the files attached to this post.
rocko
essemist
 
Posts: 59
Joined: Mon Dec 07, 2009 5:25 pm

Re: Triggering Code

Postby rocko on Sun Jul 01, 2012 9:53 am

Hi,

So - thanks to all comments and Forum help I got it working.

The issue was a bit stupid... The operating command should come after 'jnz Bypass;' and prior to 'Bypass:' .

Thanks all !
rocko
essemist
 
Posts: 59
Joined: Mon Dec 07, 2009 5:25 pm

Re: Triggering Code

Postby Jennie on Mon Jul 09, 2012 9:37 am

Triggering a code info was just what I was interested in)
Thank you so much for your tips given here and for opening the thread!
This post was really helpful for me.
Jennie
essemer
 
Posts: 1
Joined: Mon Jul 09, 2012 9:34 am

Re: Triggering Code

Postby rocko on Fri Jul 13, 2012 6:25 am

Good to know that I helped someone in this Forum !

Usually it is I who requests for help...
rocko
essemist
 
Posts: 59
Joined: Mon Dec 07, 2009 5:25 pm


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests

cron