0.0.8 • Published 6 years ago

ngx-oscillator v0.0.8

Weekly downloads
33
License
-
Repository
-
Last release
6 years ago

NgxOscillator

ngx-oscillator is an angular wrapper for the javascript oscillator.

Installation

To install using npm :

npm i ngx-oscillator

To install using yarn : yarn add ngx-oscillator

Usage

Import the NgxOscillatorModule in your root module :

import { NgxOscillatorModule } from 'ngx-oscillator';

@NgModule({
  declarations: [AppComponent],
  imports: [NgxOscillatorModule],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {}

Use the OscillatorService to play notes :

import { OscillatorService, notes } from 'ngx-oscillator';

constructor(private _oscillatorService: OscillatorService) {}

playSomeNote() {
  this._oscillatorService.playNote(notes.A, 5);
}
0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago