Need some way to line up two wav's visually
-
- Posts: 107
- Joined: Sat Dec 17, 2011 7:57 pm
Need some way to line up two wav's visually
I always thought this was a major drawback to buzz and figured it's pointless to mention it as most people are either less lazy then me or doing stuff that doesn't require a DAW. What is the general consensus on the feasibility of haveing a few DAW features? For example, lining up two wav's from different mics to eliminate phase is so much easier to do visually. Is it as easy as pure WPF?
Re: Need some way to line up two wav's visually
I don't think it's realistic to turn Buzz into a tiny DAW as there are noone to implement these features, and the whole framework seems incompatible with this approach. My best suggestions is to have a normal DAW on the side, something like Cubase, Samplitude, Logic or similar.
Even my automation idea seems like something we probably won't ever see.
Even my automation idea seems like something we probably won't ever see.
Re: Need some way to line up two wav's visually
Using the Audio Track plugin, I change the dropdown in song view to 1 and line it up visually. However, that's not something you can really do at the pattern level.
- HerrFornit
- Posts: 469
- Joined: Sat Feb 25, 2017 12:27 pm
- Location: Dortmund
- Contact:
Re: Need some way to line up two wav's visually
Ah yes, good question. I check out mridlen's way with audio track 

Re: Need some way to line up two wav's visually
Didn't see this first time around but man that'd be good ! Definitely a feature of 'conventional' DAWs that I miss having in Buzz - So much so I was nearly tempted to get Renoise the other day as it seemed to be the only tracker offering such a thing ...Joachip wrote:Even my automation idea seems like something we probably won't ever see.
Re: Need some way to line up two wav's visually
This is kind of related. I recently started an audio project where I need to mix long audio recordings with "regular" Buzz composition/notation sequences. There are couple of issues with this:
So why not use C# and do it yourself? I'm a bit surprised how far I got. How it works:
Here is the dev stuff and we are not too far guys. If it is easy for Oskari to add these then any developer can add what ever functionality (like maybe automation) to the visual machine pattern box:
Btw. Buzz forums look much nicer now.
- You need to edit the beginning of the audio recording carefully so that it perfectly syncs with the rest of the song.
- You need to start to play the song from the place where the sampler triggers the sample note. This means you can't really start to play at any part of the sequence since the long recording would not get triggered/played.
So why not use C# and do it yourself? I'm a bit surprised how far I got. How it works:
- Load audio files to Buzz Wavetable
- Create bunch of patterns.
- Open Audio Block GUI.
- Link patterns to samples.
- Place patterns to sequencer view.
- Press play. Pattern box ceiling marks the beginning of sample.
- If audio is not syncing perfectly then either edit the audio in Wavetable view or use the offset parameter to do fine tuning.
Here is the dev stuff and we are not too far guys. If it is easy for Oskari to add these then any developer can add what ever functionality (like maybe automation) to the visual machine pattern box:
- C# API to to get the surface to draw on the machine pattern in sequencer view.
- C# API to receive mouse/pointer events when user interacts with the pattern in sequencer view.
Btw. Buzz forums look much nicer now.
- HerrFornit
- Posts: 469
- Joined: Sat Feb 25, 2017 12:27 pm
- Location: Dortmund
- Contact:
Re: Need some way to line up two wav's visually
@wde
WOW!
Something is going on...
Hope some programmers join you
/I would like to, but nobody shows me how to
)
In the meanwhile I use a sample-delay plugin/machine inserted in line before matilde or audiotrack and listen by ear (many times
). Matildes timeresolution with sample-offset is too rough for doing a fine-grained adjustment in all cases. And I don't want to use a sound editor beside so your approach is higly welcome! 
WOW!

Hope some programmers join you


In the meanwhile I use a sample-delay plugin/machine inserted in line before matilde or audiotrack and listen by ear (many times


Re: Need some way to line up two wav's visually
The basics seem to work ok. Unzip to Gear\Generators.
Last edited by wde on Tue Feb 25, 2020 3:11 pm, edited 1 time in total.
- HerrFornit
- Posts: 469
- Joined: Sat Feb 25, 2017 12:27 pm
- Location: Dortmund
- Contact:
Re: Need some way to line up two wav's visually
great! thanx,
I tried it. I can load the machine and the samples into the patterns without problems. Sound is good.
Playing a sample in parallel in 2 instances of audioblock let both instances crash. Buzz needs to be restarted then.
I am not sure if the offset works as it should?. I can cut only a short part of the sample (max 20000 is it samples?).
I tried it. I can load the machine and the samples into the patterns without problems. Sound is good.

Playing a sample in parallel in 2 instances of audioblock let both instances crash. Buzz needs to be restarted then.
I am not sure if the offset works as it should?. I can cut only a short part of the sample (max 20000 is it samples?).
Re: Need some way to line up two wav's visually
I do linear conversion if sample frequency is not matching host frequency. Just make sure sample matches host freq or it is half/double to maximize sound quality

Managed to fix one crash bug. The offset is more aggressive with this version.
Last edited by wde on Fri Feb 28, 2020 1:22 pm, edited 4 times in total.
Re: Need some way to line up two wav's visually
Very cool. Managed to crash it pretty quickly but don't have steps to repro. Also got some very interesting noises when I tried seeking past the end of the audio but still with the pattern. This is going to be a great machine though! 

Re: Need some way to line up two wav's visually
Argh. I truly messed up the code while trying to fix one bug
Please download again.

Please download again.
Re: Need some way to line up two wav's visually
Seems much happier now but I still managed to crash it by replacing a sample that was in use.

So simple to use though, could be a bit of a game changer! Do you think it might be feasible to drop a file onto the machine window and have it magically load into the wavetable and create a pattern the same length as the audio? That would be amazing.
Re: Need some way to line up two wav's visually
Excellent idea. Uploaded new version. The good:
- Drag & Drop to empty wave slot in Audio Block done.
- Auto create correct size pattern done.
- Auto load to wavetable done.
There is still a crash bug and I can't seem to figure it out. Happens when you create more than one instance of Audio Block and it seems to be related to Wavetable. Basically changing index of target sample wave in machine 1 causes issues with machine 2 when accessing wavetable. Maybe someone could take a look?
Edit. Maybe accessing Wavetable from Work() is not the best thing to do. Instead fill temporary buffer from MasterTap()?
- HerrFornit
- Posts: 469
- Joined: Sat Feb 25, 2017 12:27 pm
- Location: Dortmund
- Contact:
Re: Need some way to line up two wav's visually
Tried your new version.
Perhaps you can isolate the bug a bit: Crash here occurs only when I copy the first instance (incl. samples) and then play the same pattern in parallel as a song. Both instances crash. Restart of buzz needed.
It does not occur when I load a new instance of audioblock and load the samples again and then play as parallel as a song ! (the drag and drop is awesome man!! great idea IXix).
Offset works! A little help would be to limit the offset-values to max length of the sample (always 20000..2000 ??). Its a bit confusing when you enter a high value and here nothing (of course logical If you know the end ..
)
EDIT: Ok, I have seen now, that in second case (s.o.) it loads the samples in the next slots, that's why it doesn't crash, cause its not the exact same sample!
EDIT2: A minor issue: Overwriting a sample by drag and drop does not adjust the pattern-lenght.
Perhaps you can isolate the bug a bit: Crash here occurs only when I copy the first instance (incl. samples) and then play the same pattern in parallel as a song. Both instances crash. Restart of buzz needed.
It does not occur when I load a new instance of audioblock and load the samples again and then play as parallel as a song ! (the drag and drop is awesome man!! great idea IXix).
Offset works! A little help would be to limit the offset-values to max length of the sample (always 20000..2000 ??). Its a bit confusing when you enter a high value and here nothing (of course logical If you know the end ..

EDIT: Ok, I have seen now, that in second case (s.o.) it loads the samples in the next slots, that's why it doesn't crash, cause its not the exact same sample!
EDIT2: A minor issue: Overwriting a sample by drag and drop does not adjust the pattern-lenght.
Re: Need some way to line up two wav's visually
That was an awful crash bug but I think I crushed it.
Other stuff:
Other stuff:
- Auto update pattern length for all actions (change wave, drag & drop)
- Can drag & drop to any slot
- Tool tip for 'Offset' label.
- Sequencer view gets updated immediately when pattern lengths change.
- HerrFornit
- Posts: 469
- Joined: Sat Feb 25, 2017 12:27 pm
- Location: Dortmund
- Contact:
Re: Need some way to line up two wav's visually
you are so fast!
you got the bug!
I like the red warning of the offset exceeding.
I am still not sure about the unit of the offset (ms, samples, feed )? Can it also be a negativ delay ?
EDIT: minor issue: for me it would be more straight forward if the Audioblock0 pattern would be the actual 0 pattern. There is the 0.00 default pattern in addition: EDIT2: Mouse wheel for offset?

you got the bug!

I like the red warning of the offset exceeding.
I am still not sure about the unit of the offset (ms, samples, feed )? Can it also be a negativ delay ?
EDIT: minor issue: for me it would be more straight forward if the Audioblock0 pattern would be the actual 0 pattern. There is the 0.00 default pattern in addition: EDIT2: Mouse wheel for offset?
Last edited by HerrFornit on Fri Feb 28, 2020 10:07 am, edited 1 time in total.
- HerrFornit
- Posts: 469
- Joined: Sat Feb 25, 2017 12:27 pm
- Location: Dortmund
- Contact:
Re: Need some way to line up two wav's visually
Next major update could be a recording option, directly into the pattern slot of audioblock? 
