I made a new release of my “morse-pro” Javascript library yesterday. There was no particular reason to make a release now except that I had some free time, it’s been too long coming and if I wait until it is “ready” then I’ll never make a release. The “v2.0.0” tag sounds important but it’s just because there are breaking changes since the previous release, not because some development milestone has been reached. More breaking changes are likely as I am not happy with the architecture, but who knows when?! Best to release now in case someone finds it useful.
You can:
The library is used to drive all the tools on my Morse code website. The library’s licence is the EUPL v1.2.
dahLength
, ditSpace
, charSpace
and wordSpace
methodswordSpace
propertyendPadding
parameter (default 0) in getSample
and getWAASample
methods to allow a configurable pause at the end of the waveformgetSample
getWAASample
asynchronous method to return sample generated using Web Audio APIfwpm
3rd argument in constructorfwpm
3rd argument in constructoriambicA
5th argument in constructor to switch between iambic A and B modesmorse-pro-player-waa-light
)loadTimings
methodloadNext
method to provide a single item queue of timingspause
methodisPaused
read-only propertynextNote
read-only propertystartPadding
field to insert a pause before playback begins (suggest 5ms to avoid sound artefacts in some browsers)endPadding
field to insert a pause after playback of a timing sequence completesmorse-pro-player-waa
tidyMorse
now trims whitespacelooksLikeMorse
now returns false when the input string is just whitespacegetData
arguments changed to take waveform data (so use morseCWWave.getSample()
not morseCWWave
instance directly), sampleRate and bitsPerSampleuseProsigns
argument in constructor have true
as the defaultgetTimingsGeneral
is now a static method_ditOrDah
function is now the method required in class extensionscheck
to _ditOrDah
functionisPlaying
field into isPlaying
read-only propertyaudioType
property changed from 4 to 5
Comments
Comments powered by Disqus