-
Notifications
You must be signed in to change notification settings - Fork 1
/
lsp_market_survey.php
227 lines (220 loc) · 9.97 KB
/
lsp_market_survey.php
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<?php
chdir($_SERVER['DOCUMENT_ROOT']);
require_once("./inc/top.php");
require_once("./inc/header.php");
require_once("./inc/survey.php");
$price_constraints = function ($price) {
if ($price <= 100) {
return "You need to enter value at least of 101.";
}
if ($price >= 10000) {
return "The price is too high, we do not provide enterprise solutions for big corporations.";
}
return null;
};
$survey = array(
'id' => 'market_survey',
'header' => 'Consumer survey from LSP Project',
'info' => array(
"As you probably know, LSP Project got first working builds of plugins for Windows.",
"Despite we're not planning to distribute them for free for Windows platform while keeping Linux and FreeBSD builds free.",
"The main reason is, if people use proprietary solutions, then it is pretty fair to ask money for the job that developers of LSP project already did for almost 8 years of the project activity. And we still keep going on!",
"To understand the value of LSP Project on the consumer market and estimate the fair price for the sofware, we ask you to complete this short survey.",
"The survey is completely anonymous and won't take more than 5 minutes of your time."
),
'page' => $SITEROOT . "/lsp_market_survey",
'table' => 'lsp_market_survey',
'questions' => array(
array(
'text' => 'What is your work status?',
'mode' => 'radio',
'name' => 'status',
'type' => 'key',
'items' => array(
array('text' => 'Student', 'value' => 'stud'),
array('text' => 'Teacher/Mentor', 'value' => 'men'),
array('text' => 'Freelancer', 'value' => 'free'),
array('text' => 'Employer/Manufacturer', 'value' => 'emp'),
array('text' => 'Worker/Employed', 'value' => 'work'),
array('text' => 'Unemployed', 'value' => 'unemp'),
array('text' => 'Pensioner', 'value' => 'pens'),
array('text' => 'None of above', 'value' => 'none'),
)
),
array(
'text' => 'What roles match to your relation to music production?',
'mode' => 'check',
'name' => 'role',
'type' => 'key',
'table' => 'lsp_market_survey_roles',
'items' => array(
array('text' => 'Consumer/Listener', 'value' => 'con'),
array('text' => 'Enthusiast', 'value' => 'ent'),
array('text' => 'DJ', 'value' => 'dj'),
array('text' => 'Musician', 'value' => 'mus'),
array('text' => 'Dancer', 'value' => 'dan'),
array('text' => 'Actor', 'value' => 'act'),
array('text' => 'Critic', 'value' => 'cri'),
array('text' => 'Reviewer', 'value' => 'rev'),
array('text' => 'Journalist', 'value' => 'jour'),
array('text' => 'Audio Engineer', 'value' => 'eng'),
array('text' => 'Producer', 'value' => 'prod'),
array('text' => 'Advertiser', 'value' => 'adv'),
array('text' => 'Label', 'value' => 'lbl'),
array('text' => 'Developer of music software', 'value' => 'swdev'),
array('text' => 'Developer of sound-related hardware devices', 'value' => 'hwdev'),
array('text' => 'Other', 'value' => 'oth')
)
),
array(
'text' => 'What is your money income from music?',
'mode' => 'radio',
'name' => 'income',
'type' => 'key',
'items' => array(
array('text' => 'I don\'t have any income', 'value' => 'none'),
array('text' => 'Rare/variable income', 'value' => 'rare'),
array('text' => 'Small income', 'value' => 'small'),
array('text' => 'Satisfactory income', 'value' => 'sat'),
array('text' => 'Higher than satisfactory income', 'value' => 'high'),
array('text' => 'Very high income', 'value' => 'huge')
)
),
array(
'text' => 'How do you usually purchase licenses to audio processing plugins?',
'mode' => 'radio',
'name' => 'purchase',
'type' => 'key',
'items' => array(
array('text' => 'I don\'t use audio processing plugins', 'value' => 'none'),
array('text' => 'I don\'t purchase licenses and use only free software/plugins', 'value' => 'free'),
array('text' => 'I use cracks, keygens and published license keys at some internet resources to make use of audio software costless for me', 'value' => 'hack'),
array('text' => 'My organization provides all necessary licenses to me', 'value' => 'org'),
array('text' => 'I prefer to purchase every single plugin even if there are bundles of cheaper price that contain all desired plugins', 'value' => 'ind'),
array('text' => 'I prefer to purchase plugin bundles even if they contain plugins that I don\'t need because the price of bundle is less than total of their individual prices', 'value' => 'bund')
)
),
array(
'text' => 'Are you familiar with the <a href="' . $SITEROOT . '/" target="_blank">Linux Studio Plugins project</a>?',
'mode' => 'radio',
'name' => 'familiar',
'type' => 'key',
'items' => array(
array('text' => 'No, I\'ve never heard of it before', 'value' => 'no'),
array('text' => 'I\'ve heard of it but I haven\'t tried their plugins', 'value' => 'some'),
array('text' => 'I know about their plugins and don\'t want to try them', 'value' => 'rej'),
array('text' => 'I want to try their plugins, but it hasn\'t been possible for me to use them', 'value' => 'want'),
array('text' => 'I know about their plugins but I prefer other ones', 'value' => 'oth'),
array('text' => 'I rarely use their plugins in my work', 'value' => 'rare'),
array('text' => 'I regularly use their plugins in my work', 'value' => 'reg'),
array('text' => 'I almost always use their plugins in my work', 'value' => 'perm')
)
),
array(
'text' => 'According to your opinion, what is the fair price range for the ' .
'<a href="' . $SITEROOT . '/?page=manuals§ion=para_equalizer_x32_stereo" target="_blank">LSP Parametric Equalizer plugin series</a> ' .
'(<a href="https://youtu.be/TfpJPsiouuU" target="_blank">Demo on YouTube</a>)?',
'mode' => 'radio',
'name' => 'para_eq',
'custom' => 'custom',
'type' => 'int',
'constraints' => $price_constraints,
'js_validation' => 'price_constraints',
'items' => array(
array('text' => 'Not more than $10', 'value' => '10'),
array('text' => '$11-$20', 'value' => '20'),
array('text' => '$21-$30', 'value' => '30'),
array('text' => '$31-$40', 'value' => '40'),
array('text' => '$41-$50', 'value' => '50'),
array('text' => '$51-$60', 'value' => '60'),
array('text' => '$61-$70', 'value' => '70'),
array('text' => '$71-$80', 'value' => '80'),
array('text' => '$81-$90', 'value' => '90'),
array('text' => '$91-$100', 'value' => '100'),
array('text' => 'More than $100', 'value' => 'user', 'custom' => 'custom')
)
),
array(
'text' => 'According to your opinion, what is the fair price range for the ' .
'<a href="' . $SITEROOT . '/?page=manuals§ion=mb_compressor_stereo" target="_blank">LSP Multiband Compressor plugin series</a> ' .
'(<a href="https://youtu.be/RCdk94Hta3o" target="_blank">Demo on YouTube</a>)?',
'mode' => 'radio',
'name' => 'mb_comp',
'custom' => 'custom',
'type' => 'int',
'constraints' => $price_constraints,
'js_validation' => 'price_constraints',
'items' => array(
array('text' => 'Not more than $10', 'value' => '10'),
array('text' => '$11-$20', 'value' => '20'),
array('text' => '$21-$30', 'value' => '30'),
array('text' => '$31-$40', 'value' => '40'),
array('text' => '$41-$50', 'value' => '50'),
array('text' => '$51-$60', 'value' => '60'),
array('text' => '$61-$70', 'value' => '70'),
array('text' => '$71-$80', 'value' => '80'),
array('text' => '$81-$90', 'value' => '90'),
array('text' => '$91-$100', 'value' => '100'),
array('text' => 'More than $100', 'value' => 'user', 'custom' => 'custom')
)
),
array(
'text' => 'According to your opinion, what is the fair price for the ' .
'<a href="' . $SITEROOT . '/?page=manuals§ion=flanger_stereo">LSP Flanger plugin series</a> ' .
'(<a href="https://youtu.be/_WD9GndORQA" target="_blank">Demo on YouTube</a>)?',
'mode' => 'radio',
'name' => 'flanger',
'type' => 'int',
'constraints' => $price_constraints,
'js_validation' => 'price_constraints',
'items' => array(
array('text' => 'Not more than $10', 'value' => '10'),
array('text' => '$11-$20', 'value' => '20'),
array('text' => '$21-$30', 'value' => '30'),
array('text' => '$31-$40', 'value' => '40'),
array('text' => '$41-$50', 'value' => '50'),
array('text' => '$51-$60', 'value' => '60'),
array('text' => '$61-$70', 'value' => '70'),
array('text' => '$71-$80', 'value' => '80'),
array('text' => '$81-$90', 'value' => '90'),
array('text' => '$91-$100', 'value' => '100'),
array('text' => 'More than $100', 'value' => 'user', 'custom' => 'custom')
)
),
array(
'text' => 'According to your opinion, what is the fair price for the bundle of ' .
'<a href="' . $SITEROOT . '/?page=manuals§ion=phase_detector">LSP Phase Detector plugin</a> and ' .
'<a href="' . $SITEROOT . '/?page=manuals§ion=comp_delay_stereo">Delay Compensator plugin series</a> ' .
'(<a href="https://youtu.be/j-rNb409GYg" target="_blank">Demo on YouTube</a>).?',
'mode' => 'radio',
'name' => 'pd_delay',
'custom' => 'custom',
'type' => 'int',
'constraints' => $price_constraints,
'js_validation' => 'price_constraints',
'items' => array(
array('text' => 'Not more than $10', 'value' => '10'),
array('text' => '$11-$20', 'value' => '20'),
array('text' => '$21-$30', 'value' => '30'),
array('text' => '$31-$40', 'value' => '40'),
array('text' => '$41-$50', 'value' => '50'),
array('text' => '$51-$60', 'value' => '60'),
array('text' => '$61-$70', 'value' => '70'),
array('text' => '$71-$80', 'value' => '80'),
array('text' => '$81-$90', 'value' => '90'),
array('text' => '$91-$100', 'value' => '100'),
array('text' => 'More than $100', 'value' => 'user', 'custom' => 'custom')
)
),
array(
'text' => 'Please confirm that you are a human.',
'mode' => 'captcha'
)
)
);
if (process_survey($survey))
{
require_once("./inc/survey/submitted.php");
}
require_once("./inc/footer.php");
?>