Jump to content


Photo

Newbie question: how to parse waveform as text data


  • Please log in to reply
5 replies to this topic

#1 xrxs

xrxs

    Super Advanced Member

  • Normal Members
  • PipPipPipPip
  • 179 posts

Posted 12 October 2015 - 08:31

Hello!

 

I need to represent a waveform in sample editor as serial compilation of values for each sample (max # of samples is 1024) in similar fashion:

 
0   -0.001953125   -0.00390625   -0.005859375   -0.0078125   -0.009765625   -0.01171875   -0.013671875   -0.015625   -0.017578125   -0.01953125  ...  0.017578125   0.015625   0.013671875   0.01171875   0.009765625   0.0078125   0.005859375   0.00390625   0.001953125
 
How can i do this? Where to start?   :rolleyes:

  • esaruoho likes this

#2 4Tey

4Tey

    Chief Above Chief Member

  • Normal Members
  • PipPipPipPipPipPip
  • 382 posts
  • Gender:Male

Posted 12 October 2015 - 11:44

Out of curiosity, can you attach to a post the sample/instrument that you want to represent in ASCII text floating point form? :)


Edited by 4Tey, 13 October 2015 - 17:32.


#3 xrxs

xrxs

    Super Advanced Member

  • Normal Members
  • PipPipPipPip
  • 179 posts

Posted 12 October 2015 - 12:01

There is DIY hardware FM-synth, PreenFM2. Since last firmware it supports loading of custom user waveforms from USB in such format. So i thought Renoise's sample editor with it's features + LUA is really good for this task.

 

http://ixox.fr/forum...p?topic=63505.0

Attached Files

  • Attached File  usr2.txt   13.51KB   114 downloads

Edited by xrxs, 12 October 2015 - 12:02.


#4 4Tey

4Tey

    Chief Above Chief Member

  • Normal Members
  • PipPipPipPipPipPip
  • 382 posts
  • Gender:Male

Posted 12 October 2015 - 12:13

Oh I see you want to go from a ASCII file to a sample/waveform :)   (Luckily I can just about do this for you :D)

 

Ah, you do want to go from sample to ASCII :)


Edited by 4Tey, 16 October 2015 - 08:49.


#5 4Tey

4Tey

    Chief Above Chief Member

  • Normal Members
  • PipPipPipPipPipPip
  • 382 posts
  • Gender:Male

Posted 12 October 2015 - 15:09

Now if you do want to go from a renoise mono sample to a text file (in that format) I've knocked together a possible quick hack tool for this.  It adds 'Sample to Text' to the sample menu :)

Attached Files


  • xrxs likes this

#6 xrxs

xrxs

    Super Advanced Member

  • Normal Members
  • PipPipPipPip
  • 179 posts

Posted 12 October 2015 - 15:22

Thanks! This tool is what i need actually!

Awesome! Gonna look into this tool also for knowledge purposes.


  • 4Tey likes this