Jump to content


Photo

New 'tool' 16 harmonic additive synth

synthesis

  • Please log in to reply
4 replies to this topic

#1 toblerpone

toblerpone

    Guruh Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 904 posts
  • Gender:Not Telling
  • Location::c

Posted 19 August 2016 - 11:52

It's a wavetable based 16 harmonic additive synth that works with the supplied instrument, and supports clipping.

Access the menu entry by right-clicking the sample waveform.

I was running through my script folder and noticed i never shared it.

Attached Files


  • Djeroek likes this

#2 Djeroek

Djeroek

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 6725 posts
  • Gender:Male
  • Location:Borneo

Posted 19 August 2016 - 12:00

It's a wavetable based 16 harmonic additive synth that works with the supplied instrument, and supports clipping.

 

So it doesn't work with any sampled instrument, that'd explains this notice running it on a short loop;

 

 

'C:\Users\pluge\AppData\Roaming\Renoise\V3.1.0\Scripts\Tools\tblr.tools.Additive_synth_pone.xrnx\main.lua' failed in one of its notifiers.

 
Please contact the author (tblr | tblr@tblr.tblr) for assistance...
 
std::logic_error: 'invalid frame index '169'. valid values are (1 to 168).'
stack traceback:
  [C]: in function 'set_sample_data'
  main.lua:50: in function 'finalise_t'
  main.lua:60: in function 'transform_phase_table'
  main.lua:69: in function 'transform_amp_table'
  main.lua:134: in function <main.lua:132>


#3 toblerpone

toblerpone

    Guruh Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 904 posts
  • Gender:Not Telling
  • Location::c

Posted 19 August 2016 - 12:04

It only works with the supplied instrument. If there is a demand, and if someone can tell me how to generate clean sines at any frequency and sample rate (I forgot how I did it) I can remove that limitation (if i remember correctly 384 sample frames was the lowest i could get without aliasing on the 16th harmonic) and add a bit of scripting possibilities too. 


Edited by toblerpone, 19 August 2016 - 12:07.

  • Djeroek likes this

#4 Djeroek

Djeroek

    Probably More God or Borg Than Human Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 6725 posts
  • Gender:Male
  • Location:Borneo

Posted 19 August 2016 - 12:09

Although I keep getting the notice when trying it on a hand drawn sample, the sound does seem to be affected through the tool somehow. 

 

edit; the waveform in the sample editor however remains the same shape, if you select another instrument then back again the waveform is updated.


Edited by Djeroek, 19 August 2016 - 12:12.


#5 toblerpone

toblerpone

    Guruh Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 904 posts
  • Gender:Not Telling
  • Location::c

Posted 19 August 2016 - 16:11

It needs 384 sample frames to work. The speed in lua can only be achieved if there are no calculations involved, hence the use of a wavetable.

It overwrites those 384 sampels each time, simply adding each harmonic's wavetable to the sample.

example:

Attached Files


Edited by toblerpone, 19 August 2016 - 16:12.






Also tagged with one or more of these keywords: synthesis