Old 04-16-2016, 03:30 PM   #1
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default Lua: Simple SampleEditor

Simple SampleEditor. Warning - its beta version.

It will be corrected and added many things, if I do not chill


=====================
Only 16, 24 PCM and 32, 64 Float Point wav-files are supported!!!
Сurrently already supported mono, stereo and multichannel wav-files.
===
===
Quick instructions:
Select an item.
Set the time selection on item. Note, if time selection more than than 100 ms, only the first 100 ms will be used.
Use the left mouse button for edit waveform.
Use the right mouse button for Undo.
Use the mousewheel for vertical zoom
If you get error messages, inform about it here
=====================
Warning! Script to directly edit the source file.
Undo is only available while the script is running.
Therefore it is better to use a copy of the file if you are not sure...
=====================
Link will be updated.
SampleEditor
__________________
ReaScripts

Last edited by eugen2777; 05-26-2016 at 04:27 AM.
eugen2777 is offline   Reply With Quote
Old 04-16-2016, 03:44 PM   #2
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,595
Default

sir you are AWESOME!
but an error :
104: attempt to perform arithmetic on a nil value (global 'smpls')

EDIT: nevermind,needs to be WAV (tried on MP3)

Last edited by Sexan; 04-16-2016 at 03:53 PM.
Sexan is online now   Reply With Quote
Old 04-16-2016, 04:05 PM   #3
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

Sorry,confusion,available normal version
eugen2777 is offline   Reply With Quote
Old 04-16-2016, 04:13 PM   #4
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

They could do it very easily.
This is not a big difficulty.
To say more - I can transfer the editing right on the wave of the original, but only for themselves.
I do not have to get action mouse or arrow keys and the correct coordinates for any permits. And they have already, and it costs nothing to these things, that's for sure, everything is simple enough.
eugen2777 is offline   Reply With Quote
Old 04-16-2016, 04:22 PM   #5
BenK-msx
Human being with feelings
 
BenK-msx's Avatar
 
Join Date: Jun 2008
Location: Whales, UK
Posts: 6,009
Default

This could get you a lot of Christmas cards !

V interesting, thanking you.
__________________
JS Super8 Looper Template & intro | BCF2000 uber info Thread | Who killed the Lounge?
BenK-msx is offline   Reply With Quote
Old 04-16-2016, 10:14 PM   #6
raiirock
Human being with feelings
 
raiirock's Avatar
 
Join Date: Mar 2013
Location: Moscow
Posts: 99
Default

Just wow ! Looks like with this we can fix glitches in audio like we do with pencil in pro tools !
raiirock is offline   Reply With Quote
Old 04-17-2016, 12:40 AM   #7
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

Indeed, really great stuff !
vanhaze is offline   Reply With Quote
Old 04-17-2016, 02:46 AM   #8
airon
Human being with feelings
 
airon's Avatar
 
Join Date: Aug 2006
Location: Berlin
Posts: 11,817
Default

Slick. Will give this a go on a mix today. I often need to fix one tiny glitch and this helps.

Everyone, remember to work on WAV copies of your files !!!

Thank you Eugen2777.
__________________
Using Latch Preview (Video) - Faderport 16 setup for CSI 1.1 , CSI 3.10
Website
"My ego comes pre-shrunk" - Randy Thom
airon is offline   Reply With Quote
Old 04-17-2016, 03:08 AM   #9
Sju
Human being with feelings
 
Join Date: Jun 2015
Posts: 685
Default

Quick, buy this man more booze!

Btw, be careful; this script overrides the original wav without undo.
Sju is offline   Reply With Quote
Old 04-17-2016, 04:28 AM   #10
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

Undo will be added in future versions!
And many other improvements, zoom and etc.
eugen2777 is offline   Reply With Quote
Old 04-17-2016, 05:40 AM   #11
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,595
Default

If this came up from being drunk I don't want to imagine what can you do sober
Sexan is online now   Reply With Quote
Old 04-17-2016, 05:41 AM   #12
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

Ehehehe, that's a very good one :0)
vanhaze is offline   Reply With Quote
Old 04-17-2016, 06:43 AM   #13
sinkmusic
Human being with feelings
 
sinkmusic's Avatar
 
Join Date: Feb 2006
Location: decepticon mothership in a hidden place inside a mountain
Posts: 3,754
Default

Wow, very impressive !
You're the LUA/EEL Bukowski !
Thank you for sharing, and looking forward to future versions
sinkmusic is online now   Reply With Quote
Old 04-18-2016, 11:04 PM   #14
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

would love this to work but it does not seem to ...

it gives an error and then shows nothing like the gif in this post...

I'm in reaper 64 bit if that matters
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 04-19-2016, 12:26 AM   #15
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

Try downloading again, I make some corrections sometimes. And remember - this is only a beta version.
If you get you can specify them here error messages, to me it was easier to fix them
eugen2777 is offline   Reply With Quote
Old 04-19-2016, 05:38 AM   #16
Castanuelas
Human being with feelings
 
Join Date: Sep 2012
Posts: 74
Default

Sometimes I use 64-bit floating-point WAV files in REAPER. I would be thankful if you script supported these too.
Castanuelas is offline   Reply With Quote
Old 04-19-2016, 11:47 AM   #17
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

Added "Undo". Use right-click for undo.
eugen2777 is offline   Reply With Quote
Old 04-21-2016, 07:08 AM   #18
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Hey Eugen,
Thanks so much for this great script.

Can you confirm; does undo simply re-edit the audio with 'reverse values' or does it actually step back through states?

And can you confirm/deny 64 bit float compatibility that someone asked about, please?


Thank you!
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 04-21-2016, 07:25 AM   #19
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

At each change the edited portion and filename is stored in the table.
Undo re-edit audio using the previously stored data.
Undo steps is unlimited.
64 bit float - will be added, if needed.
eugen2777 is offline   Reply With Quote
Old 04-21-2016, 08:14 AM   #20
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

So cool! Can't wait to try this thanks.

So I guess the safest practice for now is to use duplicate as new take before editing so we don't permanently destroy anything?

Also, does it handle/avoid breaking marker cues in items?

I guess if they are only in the header of the file then it's all fine right?

Hmm. Is it OK with broadcast wav headers?

Will try asap and report back.

Again.. Amazing and happy to donate!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 04-21-2016, 08:26 AM   #21
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

Yes, it is better to work with a copy of the file.
It is safer and you will not lose the original in any way.
eugen2777 is offline   Reply With Quote
Old 04-21-2016, 08:37 AM   #22
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

Quote:
Originally Posted by eugen2777 View Post
Try downloading again, I make some corrections sometimes. And remember - this is only a beta version.
If you get you can specify them here error messages, to me it was easier to fix them

thanks... the newest dl works for me now

I wonder if there could be a way to zoom in on the wav form while inside the editor...?

I ask this because it can seem the visual is quite small and therefore kind of hard to edit
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 04-21-2016, 09:24 AM   #23
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

To zoom in horizontally change the time selection in Reaper.
Less selection - the greater the increase.
https://stash.reaper.fm/27369/1234.gif
Maybe I'll add a full zoom in different directions like this.
https://stash.reaper.fm/27370/4321.gif
But this is not the main task.
Now, more importantly, to exclude all possible errors. Because it's a destructive editing
eugen2777 is offline   Reply With Quote
Old 04-21-2016, 09:56 AM   #24
BenK-msx
Human being with feelings
 
BenK-msx's Avatar
 
Join Date: Jun 2008
Location: Whales, UK
Posts: 6,009
Default

Works pretty well, couple of observations not to be misinterpreted as criticisms!

-On high 'zoom' / v short selection the script crashes (I got crashes anyway.. 32bit reaper 64bit win7)-
-It would be good if docked state/ position is remembered as launching it and dragging it to docker each time is less fun!

One final thing, drawing accurately is quite tricky as the adjustments seem to occur some distance away from mouse cursor, not major problem just fiddly.


Fact this is even doable is a bonus so thanks again.
__________________
JS Super8 Looper Template & intro | BCF2000 uber info Thread | Who killed the Lounge?
BenK-msx is offline   Reply With Quote
Old 04-21-2016, 11:05 AM   #25
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

Updated - 64 Float Point supported.
====
BenK-msx, when zoom-crash there any error messages?
eugen2777 is offline   Reply With Quote
Old 04-21-2016, 03:20 PM   #26
BenK-msx
Human being with feelings
 
BenK-msx's Avatar
 
Join Date: Jun 2008
Location: Whales, UK
Posts: 6,009
Default

Quote:
Originally Posted by eugen2777 View Post
Updated - 64 Float Point supported.
====
BenK-msx, when zoom-crash there any error messages?
trying to recreate... not happening! oh well.. sorry.
__________________
JS Super8 Looper Template & intro | BCF2000 uber info Thread | Who killed the Lounge?
BenK-msx is offline   Reply With Quote
Old 04-21-2016, 04:56 PM   #27
vectorwarrior
Human being with feelings
 
vectorwarrior's Avatar
 
Join Date: Aug 2014
Posts: 179
Default

This is wonderful, thank you so much. I was hoping Reaper would have this added (it really should in my opinion) but I've been waiting for ages... so I'm glad someone took the initiative. Great work
vectorwarrior is online now   Reply With Quote
Old 04-22-2016, 04:30 AM   #28
reapercurious
Human being with feelings
 
reapercurious's Avatar
 
Join Date: Jul 2007
Posts: 1,890
Default

this needs to be a standard feature in Reaper!

cheers!
reapercurious is offline   Reply With Quote
Old 04-22-2016, 01:33 PM   #29
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

+ 1000 !!
vanhaze is offline   Reply With Quote
Old 04-23-2016, 12:24 PM   #30
Castanuelas
Human being with feelings
 
Join Date: Sep 2012
Posts: 74
Default

Quote:
Originally Posted by eugen2777 View Post
Updated - 64 Float Point supported.
Much thanks!
Castanuelas is offline   Reply With Quote
Old 05-04-2016, 11:48 PM   #31
airon
Human being with feelings
 
airon's Avatar
 
Join Date: Aug 2006
Location: Berlin
Posts: 11,817
Default

Vertical zoom would be necessary for some precision work on low-level signals. I am reluctant to make a feature request, but perhaps this will be possible when you have a spare moment.

Thanks for this.
__________________
Using Latch Preview (Video) - Faderport 16 setup for CSI 1.1 , CSI 3.10
Website
"My ego comes pre-shrunk" - Randy Thom
airon is offline   Reply With Quote
Old 05-07-2016, 10:42 AM   #32
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

Updated.
Some fixes.
Vertical Zoom Added.
__________________
ReaScripts
eugen2777 is offline   Reply With Quote
Old 05-07-2016, 01:16 PM   #33
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Quote:
Originally Posted by eugen2777 View Post
Updated.
Some fixes.
Vertical Zoom added.
Man, this is a seriously cool script. Well done.
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 05-08-2016, 06:13 AM   #34
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

thanks for the vertical zoom ... lovely!
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 05-08-2016, 08:36 AM   #35
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

thanks for the update! awesome!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 05-27-2016, 08:08 AM   #36
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

Updated the algorithm for reading from and writing to the file. Now read and rewrites only needed parts of the file.
The result is significantly improved performance, especially when working with large files.
__________________
ReaScripts
eugen2777 is offline   Reply With Quote
Old 05-27-2016, 11:58 AM   #37
pcartwright
Human being with feelings
 
Join Date: Jan 2009
Posts: 1,030
Default

Nice script. Well done.
pcartwright is offline   Reply With Quote
Old 05-27-2016, 01:17 PM   #38
BenK-msx
Human being with feelings
 
BenK-msx's Avatar
 
Join Date: Jun 2008
Location: Whales, UK
Posts: 6,009
Default

Like!
__________________
JS Super8 Looper Template & intro | BCF2000 uber info Thread | Who killed the Lounge?
BenK-msx is offline   Reply With Quote
Old 05-27-2016, 02:10 PM   #39
eugen2777
Human being with feelings
 
eugen2777's Avatar
 
Join Date: Aug 2012
Posts: 271
Default

Thanks. This is a complex script inside. However, the outside it looks very simple.
__________________
ReaScripts
eugen2777 is offline   Reply With Quote
Old 05-27-2016, 03:41 PM   #40
vdubreeze
Human being with feelings
 
vdubreeze's Avatar
 
Join Date: Jul 2011
Location: Brooklyn
Posts: 2,613
Default

I'm bowled over! To be able to do this in Reaper is something I have literally been wishing for for years.

Thank you for your work!!
__________________
The reason rain dances work is because they don't stop dancing until it rains.
vdubreeze 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 10:30 AM.


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