community/lmms to 1.1.3-1

This commit is contained in:
Kevin Mihelich 2015-04-11 15:33:57 +00:00
parent dbc793780e
commit ba45e7556e
2 changed files with 3 additions and 48 deletions

View file

@ -1,43 +0,0 @@
From d8e552de80f4a7d2834843b808369315cb5b4b40 Mon Sep 17 00:00:00 2001
From: Daniel Winzen <d@winzen4.de>
Date: Thu, 15 Jan 2015 22:15:04 +0100
Subject: [PATCH] Fix calcSlope1 was not declared errors
---
plugins/monstro/Monstro.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/monstro/Monstro.cpp b/plugins/monstro/Monstro.cpp
index dc51619..d93af44 100644
--- a/plugins/monstro/Monstro.cpp
+++ b/plugins/monstro/Monstro.cpp
@@ -784,7 +784,7 @@ inline void MonstroSynth::updateModulators( float * env1, float * env2, float *
}
else if( m_env_phase[i] < 2.0f ) // attack phase
{
- env[i][f] = calcSlope1( fraction( m_env_phase[i] ) );
+ env[i][f] = calcSlope( i, fraction( m_env_phase[i] ) );
m_env_phase[i] = qMin( 2.0f, m_env_phase[i] + m_env_att[i] );
}
else if( m_env_phase[i] < 3.0f ) // hold phase
@@ -794,7 +794,7 @@ inline void MonstroSynth::updateModulators( float * env1, float * env2, float *
}
else if( m_env_phase[i] < 4.0f ) // decay phase
{
- const sample_t s = calcSlope1( 1.0f - fraction( m_env_phase[i] ) );
+ const sample_t s = calcSlope( i, 1.0f - fraction( m_env_phase[i] ) );
if( s <= m_env_sus[i] )
{
env[i][f] = m_env_sus[i];
@@ -808,7 +808,7 @@ inline void MonstroSynth::updateModulators( float * env1, float * env2, float *
}
else if( m_env_phase[i] < 5.0f ) // release phase
{
- env[i][f] = calcSlope1( 1.0f - fraction( m_env_phase[i] ) );
+ env[i][f] = calcSlope( i, 1.0f - fraction( m_env_phase[i] ) );
m_env_phase[i] += m_env_rel[i];
}
else env[i][f] = 0.0f;
--
2.2.2

View file

@ -8,7 +8,7 @@
# - remove wine makedepend, no vst
pkgname=lmms
pkgver=1.1.1
pkgver=1.1.3
pkgrel=1
pkgdesc='The Linux MultiMedia Studio.'
arch=('i686' 'x86_64')
@ -24,10 +24,8 @@ provides=('lmms-extras')
conflicts=('lmms-extras')
options=('!makeflags')
install=lmms.install
source=("https://github.com/LMMS/${pkgname}/archive/v${pkgver}.tar.gz"
0001-Fix-calcSlope1-was-not-declared-errors.patch)
md5sums=('e56c3e58cdb97ca42e6fb89970c37254'
'b31417f5a2fed0f498343a552e957c5f')
source=("$pkgname-$pkgver.tar.gz::https://github.com/LMMS/${pkgname}/archive/v${pkgver}.tar.gz")
md5sums=('88d9e66d240b711c37315e3c9da644a1')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"