xiRetimer

fit recorded audio to a tempo
git clone https://git.ce9e.org/xiRetimer.git

commit
df86f3c7c3261343cd3919af2e8c34146a067b79
parent
e022966a4df49d79a56b95ec31392c3452132138
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-12-26 08:19
port to newer wx

Diffstat

M src/gui/RetimerMainFrame.cpp 2 +-
M src/rbprocess.h 2 +-

2 files changed, 2 insertions, 2 deletions


diff --git a/src/gui/RetimerMainFrame.cpp b/src/gui/RetimerMainFrame.cpp

@@ -115,7 +115,7 @@ void RetimerMainFrame::OnOpenClick(wxCommandEvent& event) {
  115   115 
  116   116 
  117   117 void RetimerMainFrame::OnExportClick(wxCommandEvent& event) {
  118    -1 	wxFileDialog* dialog = new wxFileDialog((wxWindow*)NULL, _T("Export As"), _T(""), _T(""), _T("*.wav"), wxSAVE | wxOVERWRITE_PROMPT);
   -1   118 	wxFileDialog* dialog = new wxFileDialog((wxWindow*)NULL, _T("Export As"), _T(""), _T(""), _T("*.wav"), wxFC_SAVE | wxFD_OVERWRITE_PROMPT);
  119   119 	dialog->Show();
  120   120 
  121   121 	if (dialog->ShowModal() == wxID_OK) {

diff --git a/src/rbprocess.h b/src/rbprocess.h

@@ -36,7 +36,7 @@ int RBprocess(int olength, float* data, Marker* marker, Sample* sample, int n=1)
   36    36 
   37    37 	RubberBand::RubberBandStretcher ts(44100, 1, 0, 1);
   38    38 	// map
   39    -1 	std::map<unsigned int, unsigned int> fmap;
   -1    39 	std::map<long unsigned int, long unsigned int> fmap;
   40    40 	for (int i = 0; i < length; i += 1024) {
   41    41 		float old = marker->nnew2new(marker->new2old(i / (float)length));
   42    42 		fmap[int(old * olength) - ostart] = int(i);