Old 06-08-2016, 03:14 AM   #1
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default Lua: Create WAVE file from array of numbers(for test etc)

The script creates a file from an array of numbers.
This can be useful for testing the filters and other things while working with the AudioAccessor, off-line processing etc.
Productivity is high enough for the script. It is relatively comparable to the performance of the functions of native render. You can test this with a comment out function (generation of sine wave).

Link
========
Yes, it is no use to anyone, and will be removed!
__________________
ReaScripts

Last edited by eugen2777; 06-08-2016 at 03:37 PM.
eugen2777 is offline   Reply With Quote
Old 06-10-2016, 01:02 AM   #2
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
Default

Interesting.
Any working example of using?
mpl is offline   Reply With Quote
Old 06-10-2016, 01:48 AM   #3
planetnine
Human being with feelings
 
planetnine's Avatar
 
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,924
Default

I'm going to beaver this away for future use

I have read and written wav files for preserving metadata purposes. I didn't get that far beyond an experimental stage as I don't really use iXML BWF metadata, and it was more of a learn Lua/mental exercise.

I might write a creation and transfer script for my function generator (advanced signal generator) where I can edit waveforms in REAPER, and then squirt them out to the hardware to be replayed from audio freq up to the MHz region.

Functions and sripts like this are always useful to see how someone else approaches the code. Thank you!



>
__________________
Nathan, Lincoln, UK. | Item Marker Tool. (happily retired) | Source Time Position Tool. | CD Track Marker Tool. | Timer Recording Tool. | dB marks on MCP faders FR.
planetnine is online now   Reply With Quote
Old 06-10-2016, 06:40 AM   #4
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

At the end of the script is a simple test function, it is commented out.
function Gen_Sine(Freq,srate,duration).
And of course, you need to change the FilePath.
__________________
ReaScripts
eugen2777 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.