Skip to content

Commit

Permalink
better test
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellkammer committed Apr 19, 2023
1 parent d820623 commit 1dcedea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
strategy:
matrix:
python-version: ["3.9", "3.10"]
arch: ["x86_64", "arm64"]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -131,9 +132,9 @@ jobs:
mkdir -p artifacts
cd test
python test-rec.py
python test-rec.py -o "test-rec-${{ matrix.python-version }}-${{ matrix.arch }}.wav"
python test-dependencies.py
python test-notation.py -o 'test-notation-macos-${{ matrix.python-version }}.pdf'
python test-notation.py -o 'test-notation-macos-${{ matrix.python-version }}-${{ matrix.arch }}.pdf'
cp *.wav ../artifacts
cp *.pdf ../artifacts
Expand Down
2 changes: 1 addition & 1 deletion maelzel/core/synthevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,4 +846,4 @@ def plotEvents(events: list[SynthEvent], axes: plt.Axes = None, notenames=False
axes.yaxis.set_major_formatter(noteformatter)
axes.tick_params(axis='y', labelsize=8)

return axes
return axes
3 changes: 2 additions & 1 deletion maelzel/snd/audiosample.py
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ def fundamentalBpf(self, fftsize=2048, overlap=4, method: str = None

elif method == 'fft':
from maelzel.snd import freqestimate
steptime = stepsize/self.sr
stepsize/self.sr
samples = self.getChannel(0).samples
f0curve, probcurve = freqestimate.f0curve(samples, sr=self.sr,
overlap=4, method='fft')
Expand Down Expand Up @@ -1696,6 +1696,7 @@ def spectrumAt(samples: np.ndarray,
endsample = int(endtime * sr)
samples = samples[startsample:endsample]
samples = np.ascontiguousarray(samples)

try:
import loristrck
except ImportError:
Expand Down

0 comments on commit 1dcedea

Please # to comment.