all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 678009a700a502f28d9761286174f04deabeda30 3017 bytes (raw)
name: gnu/packages/patches/eq10q-exp10.patch 	 # note: path name is non-authoritative(*)

 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
 
Fix "‘pow10’ was not declared in this scope" error.
Taken from https://build.opensuse.org/package/view_file/home:geekositalia:daw/lv2-EQ10Q-plugins/lv2-EQ10Q-plugins-exp10.patch?expand=1

diff -rupN eq10q-2.2.org/gui/widgets/bandctl.cpp eq10q-2.2/gui/widgets/bandctl.cpp
--- eq10q-2.2.org/gui/widgets/bandctl.cpp	2016-12-11 07:07:50.000000000 -0500
+++ eq10q-2.2/gui/widgets/bandctl.cpp	2018-03-10 16:29:14.026996405 -0500
@@ -949,7 +949,7 @@ bool BandCtl::parseBtnString(BandCtl::Bu
   if(str_k.length() > 0)
   {
     val_k = atof(str_k.c_str()) * 1e3;
-    val *= pow10(3.0 - str.length());
+    val *= exp10(3.0 - str.length());
     if(str.length() > 3)
     {
       //throw an error, imposible to match str > 3 with k
@@ -960,7 +960,7 @@ bool BandCtl::parseBtnString(BandCtl::Bu
   }
   if(str_d.length() > 0)
   {
-    val_d = atof(str_d.c_str())/ pow10((double)str_d.length());
+    val_d = atof(str_d.c_str())/ exp10((double)str_d.length());
   }
    
   btn->value = val + val_k + val_d;
diff -rupN eq10q-2.2.org/gui/widgets/bodeplot.cpp eq10q-2.2/gui/widgets/bodeplot.cpp
--- eq10q-2.2.org/gui/widgets/bodeplot.cpp	2016-12-11 07:07:50.000000000 -0500
+++ eq10q-2.2/gui/widgets/bodeplot.cpp	2018-03-10 16:27:06.222494049 -0500
@@ -194,14 +194,14 @@ void PlotEQCurve::resetCenterSpan()
 {
   //Compute center and span for the full range spectrum
   double sp = log10(MAX_FREQ/MIN_FREQ);
-  double cn = MIN_FREQ * sqrt(pow10(sp));
+  double cn = MIN_FREQ * sqrt(exp10(sp));
   setCenterSpan(cn, sp);
 }
 
 void PlotEQCurve::setCenterSpan(double center, double span)
 { 
-  m_minFreq = center / sqrt(pow10(span));
-  m_maxFreq = center * sqrt(pow10(span));
+  m_minFreq = center / sqrt(exp10(span));
+  m_maxFreq = center * sqrt(exp10(span));
     
   //Initalize the grid
   const double f_grid[GRID_VERTICAL_LINES] = {20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0,
@@ -246,8 +246,8 @@ void PlotEQCurve::setCenter(double cente
 {
   //Limit center to the possible range according the current span
   double sp = log10(m_maxFreq/m_minFreq);
-  double cmin = MIN_FREQ * sqrt(pow10(sp));
-  double cmax = MAX_FREQ / sqrt(pow10(sp));
+  double cmin = MIN_FREQ * sqrt(exp10(sp));
+  double cmax = MAX_FREQ / sqrt(exp10(sp));
   
   double cn = center;
   cn = cn > cmax ? cmax : cn;
@@ -259,7 +259,7 @@ void PlotEQCurve::setSpan(double span)
 {
   //Limit center to the possible range according the current span
   double sp_act = log10(m_maxFreq/m_minFreq);
-  double cn = m_minFreq * sqrt(pow10(sp_act));
+  double cn = m_minFreq * sqrt(exp10(sp_act));
   double smax1 = 2.0*log10(cn/MIN_FREQ);
   double smax2= 2.0*log10(MAX_FREQ/cn);
   double smax = smax1 < smax2 ? smax1 : smax2;
@@ -306,7 +306,7 @@ void PlotEQCurve::recomputeCenterFreq(do
   double fmax = MIN_FREQ*pow((MAX_FREQ/MIN_FREQ),((local_x2 + 3.5)/((double)m_zoom_surface_ptr->get_width())));
   
   double sp_act = log10(fmax/fmin);
-  double cn = fmin * sqrt(pow10(sp_act));
+  double cn = fmin * sqrt(exp10(sp_act));
   setCenter(cn);
 }

debug log:

solving 678009a700 ...
found 678009a700 in https://yhetil.org/guix/20210524194310.13378-1-t_w_@freenet.de/ ||
	https://yhetil.org/guix/20211026080128.6851-1-t_w_@freenet.de/

applying [1/1] https://yhetil.org/guix/20210524194310.13378-1-t_w_@freenet.de/
diff --git a/gnu/packages/patches/eq10q-exp10.patch b/gnu/packages/patches/eq10q-exp10.patch
new file mode 100644
index 0000000000..678009a700

1:29: trailing whitespace.
    
1:42: trailing whitespace.
 
1:44: trailing whitespace.
 { 
1:49: trailing whitespace.
     
1:60: trailing whitespace.
   
Checking patch gnu/packages/patches/eq10q-exp10.patch...
Applied patch gnu/packages/patches/eq10q-exp10.patch cleanly.
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.

skipping https://yhetil.org/guix/20211026080128.6851-1-t_w_@freenet.de/ for 678009a700
index at:
100644 678009a700a502f28d9761286174f04deabeda30	gnu/packages/patches/eq10q-exp10.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.