From: Tim E. R. <ter...@ro...> - 2012-03-21 18:40:28
|
On March 21, 2012 2:29:07 PM Tim E. Real wrote: > Hey list, Florian. > > As you know MusE does not do sample rate conversion on > audio files * > > (* Well, it does but only if you use the Simple Drums synth.) > > There was some work to rectify this way back. > > Some of you may have noticed some real freaky sample rate > conversion coding in audioconvert.cpp, event.cpp, and waveevent.cpp > > I did this back in MusE-1. > > It went through several major rewrites. > On the last rewrite, it worked very nice - wave parts were > automatically converted 'live' in realtime. > Until I realized that the way I 'connected' it to the rest of MusE > was wrong - it messed up if more than one instance of the > wave part was used. > > To fix that I realized that I needed an AudioConvertMap > which assigned an available audio converter to each > wave event. So some work started on that. > But I got bogged down and somewhat discouraged > because it will be real tricky managing the map > and the events. So it kind of went stale. > > But believe me I still have plans for this, it is ALWAYS > on my mind, always thinking about how to finish it. > It's the reason I re-enabled the Clip List editor, > hoping that such a list would come in handy as a > 'one-stop' place to set audio conversions on waves. > Unfortunately it turns out the Clip List editor is of no use here. > Trust me, due to the way waves and events are used it cannot be > the 'do-all' manager I was hoping for. Clarify: At best it could be a place to do static conversions on the files - permanent conversions, or to new files. But it opens up some new problems and questions. What do we do with the files? Make new ones or operate on the original file? Where to store new converted files - in separate folders labeled "converted-waves-44100" etc? I went through a whole round of thought experiments with that. The ultimate would be to have the live realtime conversions AND these static conversions so we have a choice of how to convert... Tim. > > So apologies for the very messy experimental-looking code > in some parts. > > The core code in audioconvert.cpp really works! > It's all good stuff. Even the transitional large comments - > they show what I was up to and what worked or not. > Albeit the commenting in WaveEventBase::readAudio > is very ugly. I should try to fix that... > > Some day I will clean it up and try to make it work again. > It's an important feature, as demonstrated by QTractor. > > Thanks. Tim. > > |