Skip to content

Commit

Permalink
Minor bug fixes to jp_makebeats
Browse files Browse the repository at this point in the history
  • Loading branch information
jpeelle committed Nov 20, 2014
1 parent ea641fa commit e63e320
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jp_makebeats.m
Expand Up @@ -82,12 +82,12 @@

% If requested, add some silence before or after the sound
if Cfg.padSoundBeginningSec > 0
pad = zeros(Cfg.padSoundBeginningSec * fs, 1);
pad = zeros(round(Cfg.padSoundBeginningSec * fs), 1);
y = [pad; y];
end

if Cfg.padSoundEndSec > 0
pad = zeros(Cfg.padSoundEndSec * fs, 1);
pad = zeros(round(Cfg.padSoundEndSec * fs), 1);
y = [y; pad];
end

Expand Down
2 changes: 1 addition & 1 deletion jp_makebeats_wrapper.m
Expand Up @@ -49,7 +49,7 @@
thisPattern = patterns{patternInd};
[y, fs, name] = jp_makebeats(thisPattern, Cfg);

outName = fullfile(outDir, sprintf('patterm%03i_%s', patternInd, name));
outName = fullfile(outDir, sprintf('pattern%03i_%s', patternInd, name));

audiowrite(outName, y, fs);
fprintf('done.\n');
Expand Down

0 comments on commit e63e320

Please sign in to comment.