// tonalisa - software to look at overtone-structures
// Copyright (C) 2016 Dominik Schmidt-Philipp
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
//
import QtQuick 2.3
import QtQuick.Controls 1.2
Item {
id:root
anchors.fill:parent
property int nKeys: 17
property var amps: [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
property var detunes: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
property var pitches:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
property var transpose:0
property var marks: [1,3,6,8,10,13,15]
property var inSpectrum:[]
function calculate_spectrum() {
calculate_grid() // do this only when there is a new grid, not for every keypress!!! (how to know???)
var y=[];
for ( var i=0;i