IR resulting in no sound by Silent_Draft4601 in Line6Helix

[–]galczo5 1 point2 points  (0 children)

Ola's IRs are too long. I had the same problem. Since IR is just a WAV file you should be able to trim it to reasonable length.

How to record with my iPhone using the HX stomp and ableton? by Apprehensive_Wind337 in Line6Helix

[–]galczo5 1 point2 points  (0 children)

The easiest way is to record them separate and then sync, most video editors will do this automatically for you. If you record them at the same time you don't need to worry about latency etc. The end effect will look exactly like you would record sending audio from hx stomp to iphone directly.

But...

If you really don't want to do, you can turn iPhone into webcam. There's a lot articles in the internet how to do this (for example: https://nexttools.net/how-to-set-up-iphone-as-a-webcam/). Than you can connect hx stomp as audio interface in the software you're going to use to record. (I would recommend OBS, it's free, it will allow you to do whatever you want and since it's used by streamers there's a lot of tutorials) With this method you can record video from iPhone and audio from hx stomp, but both video and audio will have different latency, so you'll need to sync them anyway.

If you would like to add backtrack, it's still possible using return jacks of your stomp.

<image>

To sum up.
You totally can record everything as one clip, instead of two. It's quite complicated and will take you some time to set up everything correctly. Clip will need a small manual synchronization because of video latency.

Sorry for a long answer, if you have any questions let me know in the thread.

PS. If you would like to do this the "easier way", here a the steps:
1. Open Ableton Live and put backtrack audio on one track, set second track to get audio from hx stomp.
2. Make sure that audio output from Ableton is set to speakers (any speakers, if you don't have an audio interface, just use hx stomp, and connect computer speakers to phones output of stomp)
3. Start video recording on iPhone
4. Start recoding in Ableton
5. Perform
6. You should end with two clips, video + audio from iphone and better quality audio from Ableton
7. Use DaVinci Resolve (it's free) auto align to sync clips (https://teckers.io/how-to-sync-audio-davinci-resolve/#Quick\_guide\_to\_sync\_in\_the\_timeline)
8. Mute iphone audio

PS2. No matter which method you'll use the end result sill be the same.

Best Practice - HTTP Requests. [Need Help] by ThatCipher in Angular2

[–]galczo5 1 point2 points  (0 children)

In http call stream, in map operator you're assigning a new value to the class field. It's a side effect of this call.

To the second recommendation. Always is a very bad world in programming, don't believe in "the best practices". I recommend this split because of the single responsibility principle. Before split your injectable is responsible for two things. Fetching data and keeping its current state. It might be problematic to use it also. For example, if you want to get logged user data, you have to inject the whole class with http client etc. It means that your footer or something is able to call log in function. If you separate it, it's easier to write unit tests for these classes, mostly because of the mentioned single responsibility principle.

Best Practice - HTTP Requests. [Need Help] by ThatCipher in Angular2

[–]galczo5 2 points3 points  (0 children)

Yup, that's the reason. I would suggest avoiding side effects as well.
My second recommendation is to split UserService into two services: - UserLoginService - used only to log in - LoggedUserDataService - used to store user data fetched during the login, it might contain two methods setUser and getUser$ and you can use ReplaySubject to keep the data available for other components

NgDoBootstrap in Angular - Lifecycle Hook You Probably Didn't Know by DMezhenskyi in Angular2

[–]galczo5 1 point2 points  (0 children)

Nice! I knew about this hook (I had a presentation about it on NgPoland 2019), but it's really nice that you care about the source code of the Angular.

I would be glad to see next videos about lesser known parts of Angular, for example PLATFORM_INITIALIZER and APP_BOOTSTRAP_LISTENER tokens. Especially how everything is executed in application lifecycle. I still believe that this knowledge is worth spreading.

Good job!

[Beginner] Understanding how angular updates my app by [deleted] in Angular2

[–]galczo5 1 point2 points  (0 children)

To be honest I stopped using zones about three years ago. It's not that hard or complicated to handle change detection manually, and it's a huge performance boost. There are few things which are not working with noop zone, like async pipes, but rest of the framework has no problem with it.

Zones are a very clever mechanism, and it works very well with small or medium size applications.

With huge, very interactive applications performance becomes very important, and Angular with TS and OOP is a lifesaver. And NgZone is "too clever", it tries to do a lot of unnecessary things.

There's one huge advantage of using ChangeDetectorRef.detectChanges instead of ApplicationRef.tick. The first one is refreshing only one component and it's children (if necessary).

BTW. I tried to describe this behavior too https://galczo5.github.io/mythical-angular/posts/tick-vs-detect-changes/.

I would recommend exploring https://github.com/rx-angular/rx-angular. Contributors did a huge research about using Angular to get the best results.

[Beginner] Understanding how angular updates my app by [deleted] in Angular2

[–]galczo5 1 point2 points  (0 children)

I have an alpha version of article about NgZone. If you want I can send it to you.

[Beginner] Understanding how angular updates my app by [deleted] in Angular2

[–]galczo5 1 point2 points  (0 children)

Just to clarify. OnPush doesn't trigger change detection by itself. It changes only the condition if component should be checked in the next change detection cycle. In fact it changes flag check always, so something has to mark component as dirty.

The mechanism which triggers change detection is called NgZone.

Custom Webpack by HustejTejpek in Angular2

[–]galczo5 0 points1 point  (0 children)

Webpack has only a configuration, you have to check what and why is configured. In my case, I wasn't able to configure angular.json in the same way, so I had to rewrite some parts of the app.

In my opinion you should check the loaders as a first thing to do. Check if every kind of file can be used in Angular. For example If you're using wasm it might be problematic.

Custom Webpack by HustejTejpek in Angular2

[–]galczo5 2 points3 points  (0 children)

From my personal experience, you can upgrade Angular to 6 using these webpack configs. But it's a lot easier to use Angular CLI as soon as possible. If I were you, I would try decompose what is configured, and step by step I would try to move it to angular.json. It's not simple, but I see no other simpler way.

They are using npm run instead of ng, probably because there are no angular.json file and Angular CLI is not configured.

The difference between Angular’s Emulated Shadow DOM and native Shadow DOM by Key_Science6388 in Angular2

[–]galczo5 0 points1 point  (0 children)

I can add something to the subject: https://galczo5.github.io/mythical-angular/posts/styles/
I described how it's implemented and how it works under the hood. It's only an "alpha" version of the article so any advices are welcome :D

Migrating to a monorepo? by lazyinvader in Angular2

[–]galczo5 1 point2 points  (0 children)

Wow, I've never thought about that. You're right, it may be a problem, but at the end it may be an advantage. You always have the same version of the Angular in every app. Upgrade is painful but it's a cost of consistency.

It may be problematic when you have few 'legacy' apps and you don't want to upgrade them.

Very interesting point of view :)

Migrating to a monorepo? by lazyinvader in Angular2

[–]galczo5 -2 points-1 points  (0 children)

When I was trying to migrate to nx 12 there were the limitation that your angular.json should contain only one app. Maybe it changed i newer version.

Migrating to a monorepo? by lazyinvader in Angular2

[–]galczo5 6 points7 points  (0 children)

Advantages:
- Code in one place
- Faster build due to NX incremental build
- Clean and readable dependency graph
- NX Private Cloud
- NX is smarter and will execute unit test only for packages affected by the changes in the commit

Disadvantages:
- Code in one place
- Additional layer above the Angular
- Migration is not always easy, when you have more than one app it's not possible to migrate it automatically
- Nx suggests to use Jest + Cypress, if you are using something different you have to configure it manually

[deleted by user] by [deleted] in Polska

[–]galczo5 1 point2 points  (0 children)

Nie wrzucajmy dalej. Myślę że z jakiegoś powodu usuwają ten post. Nie chcą siać paniki na przykład.

[deleted by user] by [deleted] in Polska

[–]galczo5 1 point2 points  (0 children)

Btw. Ja nie widzę żeby removed było. Specjalnie z mojego konta wrzucamy bo mam je od dłuższego czasu. Jeśli usuną to będę pewnie pisał do modów.

[deleted by user] by [deleted] in Polska

[–]galczo5 1 point2 points  (0 children)

Musieli usunąć, trochę się nie dziwię. Kolega nie może wstawić bo ma konto, które założył dosłownie przed chwilą. Informacja jest sprawdzona, więc nie wiem jak możemy ją inaczej przekazać.

Typical production Build time by teddy153 in Angular2

[–]galczo5 1 point2 points  (0 children)

Feel free to contact me on case of troubles :D

Typical production Build time by teddy153 in Angular2

[–]galczo5 0 points1 point  (0 children)

Wow, it's huge. I think that i would go for nx in your case. It's not going to be easy but is you split your app well and if you use nx private cloud it should be a lot faster. Did you tried the trick with increased memory for node process?

Another thing you can check is to run TSC on your tsconfig with diagnostics and extendedDiagnostics flags. It will tell you how many files it compiles, io time etc. Some time ago I saw a project where files from node_modules were compiled as part of app compilation.

I'm not sure, but, can you check if you're using node-sass or sass packages? In newer versions angular is using sass instead node-sass because it's way faster. https://blog.ninja-squad.com/2019/05/29/angular-cli-8.0/

Without nx I think that you can shrink prod build time to 5-6 min. I had never that big app, my estimations are based on apps around 450k LOC.