-
Notifications
You must be signed in to change notification settings - Fork 55
/
g-spectrogram.html
34 lines (33 loc) · 1.04 KB
/
g-spectrogram.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<link rel="import" href="./bower_components/polymer/polymer.html">
<link rel="import" href="./g-spectrogram-controls.html">
<link rel="import" href="./g-oscillator.html">
<link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
<polymer-element name="g-spectrogram" attributes="controls log fftsize labels ticks oscillator speed color">
<template>
<style>
canvas {
position: absolute;
width: 100%;
height: 100%;
}
g-spectrogram-controls {
position: absolute;
}
</style>
<canvas id="canvas"></canvas>
<canvas id="labels"></canvas>
<template if="{{controls}}">
<g-spectrogram-controls
log="{{log}}"
labels="{{labels}}"
speed="{{speed}}"
ticks="{{ticks}}"
color="{{color}}">
</g-spectrogram-controls>
</template>
<template if="{{oscillator}}">
<g-oscillator log={{log}} speed={{speed}}></g-oscillator>
</template>
</template>
<script src="g-spectrogram.js"></script>
</polymer-element>