Skip to content

Fixed bug with SoundExplorer#86

Open
HenryStevens wants to merge 1 commit intogatech-csl:masterfrom
HenryStevens:master
Open

Fixed bug with SoundExplorer#86
HenryStevens wants to merge 1 commit intogatech-csl:masterfrom
HenryStevens:master

Conversation

@HenryStevens
Copy link
Copy Markdown

Opening a sound with less than 640 samples in the SoundExplorer was causing framesPerPixel to become 0; thus causing the explorer to not display the waveform.

    zoomOutWidth = 640;
    zoomInWidth = sound.getLengthInFrames();
    sampleWidth = zoomOutWidth;
    framesPerPixel = sound.getLengthInFrames() / sampleWidth;

Before:
jesbefore

After:
jesafter

Opening a sound with less than 640 samples in the SoundExplorer was causing framesPerPixel to become 0; thus causing the explorer to not display the waveform.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant