Debian Codegraph @

doc-en/source/src/api/Interface/cfilein.rst

raw
1 cfilein : creates a popup menu to load a soundfile in a table
2 =============================================================
3
4 Initline
5 ---------
6
7 .. code::
8
9 cfilein(name='filein', label='Audio', help='')
10
11 Description
12 ------------
13
14 This interactive menu allows the user to import a soundfile into the
15 processing module. When the user chooses a sound using the interface,
16 Cecilia will scan the whole folder for soundfiles. A submenu containing
17 all soundfiles present in the folder will allow a quicker access to them
18 later on.
19
20 More than one cfilein can be defined in a module. They will appear under
21 the input label in the left side panel of the main window, in the order
22 defined.
23
24 In the processing class, use the BaseModule's method `addFilein` to
25 retrieve the SndTable filled with the selected sound.
26
27
28 .. code::
29
30 BaseModule.addFilein(name)
31
32 For a cfilein created with name='mysound', the table is retrieved
33 using a call like this one:
34
35
36 .. code::
37
38 self.table = self.addFilein('mysound')
39
40 Parameters
41 -----------
42
43 **name**: str
44 A string passed to the parameter `name` of the BaseModule.addFilein
45 method. This method returns a SndTable object containing Cecilia's
46 number of channels filled with the selected sound in the interface.
47 **label**: str
48 Label shown in the interface.
49 **help**: str
50 Help string shown in the widget's popup tooltip.
51
52